<?php


//获取已审核帖子列表

/**
 * @var $config
 * @var $key
 * @var $FORUM_PAGE_NUMBER
 */
include 'api.php';
include '../WeSql/WeSql.php';
include '../WeSql/config.php';
include '../WeSql/widget.php';


$weSql = new WeSql($config);

$code = 1;
$arr = $weSql->selectAll("forum", "state=0");
$msg = $arr;
$exception = '';


/** @var $code
 * @var $msg
 * @var $exception
 */
@$result = [
    'code' => $code,
    'msg' => $msg,
    'exception' => $exception
];
echo json_encode($result, JSON_UNESCAPED_UNICODE);